package ihis.core.service;

import java.io.Serializable;
import java.util.Hashtable;
import java.util.Map;

public class RequestMessage implements Serializable{
	private static final long serialVersionUID = -9126052882213280936L;
	
	
	private int serviceId = -1;
	Map parameterMap = new Hashtable();
	
	public int getServiceId(){
		return this.serviceId;
	}
	
	public void setServiceId(int serviceId){
		this.serviceId = serviceId;
	}
	
	public void addParameter(String key, Object value){
		parameterMap.put(key, value);
	}
	
	public void removeParameter(String key){
		parameterMap.remove(key);
	}
	
	public Object getParameter(String key){
		return parameterMap.get(key);
	}
	
	public void setParameter(Map parameterMap){
		if(parameterMap != null && parameterMap.size() > 0){
			this.parameterMap = parameterMap;
		}
	}
	
	public Map getParamterMap(){
		return parameterMap;
	}
}
